<% if @film.nil? %>
<script type="text/javascript">
    <!--
//    parent.document.location.reload();
    self.window.close();
    //-->
</script>
<% else %>
<%= form_tag({ :controller => "admin", :action => "save_foreign_film" }, { :method  => "post" }) %>
<p align="center">
    <h3><%= @kino.nazwa unless @kino.nil? %></h3>
    <h4><%= "Film: \"#{@film}\"" %></h4>
    <%=  select("form", "film_id", FilmShort.get_ksk_movies.sort{|x,y| x.tytul <=> y.tytul }.collect {|f| [ f.tytul , f.id ] }, { :include_blank => false }) %>
    <%= hidden_field("form", "kino_id", :value => @kino.ID_kino.to_s) unless @kino.nil? %>
    <%= hidden_field("form", "obce_id", :value => @obce_id) unless @obce_id.nil? %>    
</p>
<p align="left">
<%= submit_tag "Zapisz film" %>
</p>
<%= end_form_tag %>
<% end %>